'use strict';

module.exports = {
  querySysMenusTree: {
    response: () => {
      return {

      };
    },
  },
  addSysMenu: {
    request: () => {
      return {
        name: { type: 'string', required: true },
        parentId: { type: 'int', required: true },
        iconCode: { type: 'string', required: true },
        sortIndex: { type: 'number', required: false, min: 0 },
        type: { type: 'int', required: true },
        controller: { type: 'string', required: false },
        rightsTypes: { type: 'string', required: true },
        isRights: { type: 'string', required: true },
        functionName: { type: 'string', required: false },
        remarks: { type: 'string', required: false },
      };
    },
  },
  updateMenu: {
    request: () => {
      return {
        id: { type: 'number', required: true },
        type: { type: 'number', required: false },
        rightsTypes: { type: 'string', required: true },
        isRights: { type: 'string', required: true },
        sortIndex: { type: 'number', required: false },
        parentId: { type: 'number', required: false },
      };
    },
  },
  findMenuById: {
    request: () => {
      return {
        menuId: { type: 'number', required: true },
      };
    },
  },
  deleteMenu: {
    request: () => {
      return {
        menuId: { type: 'number', required: true },
      };
    },
  },
};
